const getList = (author, Keyword) => {
    //返回假数据
    return [
        {
            id: 1,
            title: '标题1',
            content: '内容1',
            createTime: '11111111111'
        },
        {
            id: 2,
            title: '标题2',
            content: '内容2',
            createTime: '2222222222222'
        }
    ]
}

const getDetail = (id) => {
    return [
        {
            id: 1,
            title: '标题1',
            content: '内容1',
            createTime: '4444444'
        },
        {
            id: 2,
            title: '标题2',
            content: '内容2',
            createTime: '5555555'
        }
    ]
}

const newBlog = (blogData = {}) => {
    //blogData 是一个博客对象 包含 title 和 content 属性
    return {
        id: 3  //新建博客，插入到数据表里面的id
    }
}

const updatedBlog = (id, blogData = {}) => {
    // id是要更新的id
    return true
}

const delBlog = (blogData = {}) => {
    //id 对应删除博客的id
    return true
}

module.exports = {
    getList,
    getDetail,
    newBlog,
    updatedBlog,
    delBlog
}